-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OAS] Beautify generated operation ids #198132
[OAS] Beautify generated operation ids #198132
Conversation
/ci |
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --update'
/ci |
/ci |
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
.replace(/[\/]+$/, '') | ||
.toLowerCase(); | ||
|
||
const removePrefixes = ['internal/api/', 'internal/', 'api/']; // longest to shortest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super-nit: this could be a constant outside the function.
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output lgtm, thanks!
Starting backport for target branches: 8.16, 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Summary
Updates the logic for extracting operation IDs to something more usable. Note: for now we do not consider
version
when generating these.Related https://github.com/elastic/docs-projects/issues/253
Notes
oas_docs/bundle.json
for new output